.userInfo {
  .bg {
    .ratio {
      position: relative;
      padding-top: 21.84%;

      .content {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;

        width: 100%;
        height: 100%;
        background-position: center;
        // background: url('~@/assets/pc/images/account/account-bg.jpeg') no-repeat;
        background-size: cover;
        .mask {
          position: absolute;
          top: 0;
          left: 0;
          z-index: 1;
          width: 100%;
          height: 100%;
          background-color: rgba(0, 0, 0, 0.4);
        }
        .main {
          position: relative;
          z-index: 3;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          width: 100%;
          height: 100%;
        }
        .editbg {
          position: absolute;
          top: 14px;
          right: 14px;
          display: flex;
          align-items: center;
          justify-content: center;
          width: 80px;
          height: 27px;
          background: rgba(255, 255, 255, 0.1);
          border: 1px solid rgba(255, 255, 255, 0.4);
          border-radius: 4px;
          cursor: pointer;

          .icon {
            width: 19px;
            height: 19px;
            margin-right: 4px;
            background: url('~@/assets/pc/images/account/icon-editbg.png') no-repeat center / 100%;
          }

          .text {
            color: #fff;
            font-size: 12px;
          }
        }
      }
    }
  }

  .info {
    position: relative;
    width: 90px;
    height: 90px;

    .avatar-wrapper {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
      border-radius: 50%;

      &:hover {
        .over {
          display: block;
        }
      }
    }

    .avatar {
      display: block;
      width: 100%;
      height: 100%;
      background-position: center;
      background-size: cover;
    }

    .over {
      position: absolute;
      top: 0;
      left: 0;
      display: none;
      width: 100%;
      height: 100%;
      cursor: pointer;

      .mask {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
      }

      .text {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        color: #fff;
        font-size: 16px;
        text-align: center;
      }
    }
  }

  .nick {
    position: relative;
    display: block;
    height: 25px;
    margin: 16px 0 6px 0;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    line-height: 25px;
    text-align: center;
    text-shadow: 0 3px 20px #0a4167;

    .text {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      .icon {
        width: 17px;
        height: 17px;
        margin-left: 4px;
        cursor: pointer;
      }
    }
  }

  .sign {
    height: 20px;
    padding: 0 20px;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
  }
  .auth {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 25px;
    margin-top: 12px;
    color: #fff;
    font-size: 12px;
    background: rgba(255, 81, 35, 0.3);
    border: 1px solid #ff5123;
    border-radius: 5px;
    cursor: pointer;
    &:hover {
      background: rgba(255, 81, 35, 0.5);
    }

    .icon {
      width: 15px;
      height: 15px;
      margin-left: 2px;
      background: url('~@/assets/pc/images/account/icon-arrow-small.png') no-repeat center / 100%;
    }
  }
}

.editModal {
  :global {
    .ant-modal-content {
      background: #1c3a6a;
      border-radius: 12px;
    }

    .ant-modal-close-x {
      color: #fff;
    }

    .ant-modal-body {
      padding: 20px;
    }
  }

  .header {
    display: flex;
    align-items: center;

    .avatar {
      position: relative;
      width: 120px;
      height: 120px;
      overflow: hidden;
      background-position: center;
      background-size: cover;
      border-radius: 50%;
    }
    .mask {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
    }
    .avatarUploading {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto;
    }

    .uploadAvatar {
      width: 102px;
      height: 36px;
      margin-left: 30px;
      color: #fff;
      line-height: 36px;
      text-align: center;
      background: rgba(37, 77, 248, 0.3);
      border: 1px solid #254df8;
      border-radius: 18px;
      cursor: pointer;
    }
  }

  .title {
    height: 20px;
    margin: 25px 0 6px 12px;
    color: #7688a5;
    line-height: 20px;
  }

  .textarea {
    height: 110px;
    padding: 10px;
    color: #fff;
    font-size: 14px;
    background: #0f2042 !important;
    border: none !important;
    border-radius: 6px;

    &:focus,
    &:hover {
      border: none !important;
      box-shadow: none !important;
    }
  }

  .footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;

    .btn {
      width: 120px;
      height: 36px;
      margin-right: 30px;
      color: #fff;
      line-height: 36px;
      text-align: center;
      background: #254df8;
      border-radius: 20px;
      cursor: pointer;

      &:last-child {
        margin-right: 0;
      }
    }

    .cancel {
      color: #fff;
      background: #2f5083;
    }
  }
}
